package oop1;

/**
 * @author oldliu
 * @since 1.0
 */
public class VarIntTest {
    public static void main(String[] args) {
//        double d=100.5;
//        double d2=d;
//        System.out.println("d="+d+",d2="+d2);
//        d=59;
//        System.out.println("d改了。。。");
//        System.out.println("d="+d+",d2="+d2);

        School schoolWang=new School();
        schoolWang.name="安农大";
        schoolWang.addr="长江中路100号";
        schoolWang.labs=100;
        schoolWang.rooms=200;
        schoolWang.show();
        School schoolli=schoolWang;//!!!!!!!!!!
        schoolli.show();
        System.out.println(">>>>>>>>>>>>>>>>>>");
        System.out.println("小李给他母校赞助了3个机房！");
        schoolli.labs+=3;
        System.out.println("小李的学校是：");
        schoolli.show();
        System.out.println(">>>>>>>小王的学校情况：>>>>>>>>>>>");
        schoolWang.show();

        System.out.println(">>>>>>>>>>>>>>>崔同学的母校>>>>>>>>>>>>>>>>>");
        School cuimuxiao=schoolli;
        cuimuxiao.name="中国农业大学安徽分校";
        schoolWang.show();
    }
}
